package com.ktjy.mapper;

import com.ktjy.pojo.SysUser;
import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    /**
     * 统计用户表的记录数
     * @return
     */
    public int count();
    public  int count1();
    public List<Supplier>getSuppierList();
    public List<SysUser>getUserList();
    public List<SysUser>getUsersByRealName(String realName);
    public List<SysUser>getUserListByPojo(SysUser sysUser);
    public List<SysUser> getUserListByMap(Map<String,Object> userMap);
    public List<SysUser> getUserListByParams(@Param("realName")String realName,@Param("roleId") int roleId);
    public List<SysUser> getUserListWithRoleName(SysUser sysUser);
    public List<SysUser> getUserListByRoleId(@Param("roleId") Integer roleId);
    public List<SysUser>getUserAndAddressByUserId(@Param("userId") Integer userId);
    public int add(SysUser user);
    public int modify(SysUser user);
    public int updatePwd(@Param("id")Integer id,@Param("password")String password);
    public  int deleteUserById(@Param("id")Integer id);
    public int getStorageRecordsByGoodsName(@Param("name")String name);

}
